package com.peter.design.pattern.observer.general;

/**
 * @Auther: 肖冬
 * @Date: 2020/8/1 02:20
 * @Description:
 */
public class Client {
    public static void main(String[] args) throws Exception {
        Observable observable = new Observable();
        observable.addObserver(new ConcreteObserver1());
        observable.addObserver(new ConcreteObserver2());

        observable.changed();
    }
}
